package com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.tuple;

import lombok.Data;

/**
 * 变量对象
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 1.0.0
 */
@Data
public class StrObjVar {
    
    /**
     * 变量名
     */
    private String key;
    
    /**
     * 变量值
     */
    private Object value;
    
    /**
     * 快速创建
     */
    public static StrObjVar of(String name, Object value) {
        StrObjVar variable = new StrObjVar();
        variable.setKey(name);
        variable.setValue(value);
        return variable;
    }
}
